import {
  _div,
  _btn,
  _append,
  _input
} from './ui/index.js'

let hi = _div("hi webpack", {
  class: 'red'
})
let searchBtn = _btn('search', {
  class: 'green',

}, () => {
  _append(hi, box.value)

})
let box = _input("hi", {
  class: 'green'
})

let content = _div([hi, box,searchBtn], {
  class: 'content'
})
let app = document.getElementById("app")
app.appendChild(content)